package com.ruoyi.web.entity.dto;


//import com.sun.istack.internal.NotNull;


import com.ruoyi.web.Utils.validators.IsMobile;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class SendSmsDto {
    @NotNull
    @NotEmpty
    @IsMobile
    private String mobile;

    @NotNull
    @NotEmpty
    private String verifyCode;

    @NotNull
    @NotEmpty
    private String verifyCodeId;

    @ApiModelProperty("两种类型:login及register")
    @NotEmpty
    @NotNull
    private String type; //login | register
}
